<?php /* Smarty version 2.6.26, created on 2018-07-25 15:39:29
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/category_attr/index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>分类属性</span></div>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>分类属性：一般正对分类的筛选，也可以作为一个产品的特殊属性来进行设置。</p> 
		<p>比如：一件衣服它是长袖还是短袖，有领无领，花色还是纯色，纯棉还是纤维等不同的属性，方便快速筛选和产品的主要特增。</p>
	</div> 
</div>
<div class="filter">
	<?php if ($_GET['id'] != ''): ?>
		<a href="javascript:;" onClick="edit_small('添加属性值','?m=category_attr&a=edit&pid=<?php echo $_GET['id']; ?>
')"  class="add">添加属性值</a> 
	<?php else: ?> 
		 <a href="javascript:;" onClick="edit_small('添加属性名','?m=category_attr&a=edit')" class="add">添加属性名</a> 
	<?php endif; ?> 
</div>
<div class="main">   
	<table class="ltable">
	  	<thead>
		  	<tr>  
				<th width="350">属性名称</td> 
				<th width="100">所属分类</th>
				<th width="60">排序</th> 
				<th width="130">操作</th>
				<th width="120">添加时间</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody> 
			<?php if ($this->_tpl_vars['data']['list']): ?>
				<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
					<tr>
						<td><a href="?m=category_attr&a=child_index&pid=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="down"><?php echo $this->_tpl_vars['i']['name']; ?>
</a></td> 
						<td><?php echo $this->_tpl_vars['i']['gcname']; ?>
</td>
						<td><?php echo $this->_tpl_vars['i']['px']; ?>
</td> 
						<td> 
							<a href="javascript:;" onClick="edit_small('修改属性','?m=category_attr&a=edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
');" class="edit">编辑</a> 
							<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a></td> 
						<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
						<td></td>
					</tr>
				<?php endforeach; endif; unset($_from); ?> 
			<?php else: ?>
					<tr><td colspan="6">无数据</td></tr>
			<?php endif; ?>
		</tbody> 
	</table>
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=category_attr&a=del');
function edit_small(name, url){  
	parent.dialog(name, url); 
}
</script>